package com.capinfo.accumulation.service.accounting.mybits.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.capinfo.accumulation.dao. ZDPZCWPZMBDao;
import com.capinfo.accumulation.model.accounting. mybist.ZDPZCWPZMB;
import com.capinfo.accumulation.parameter.accounting.DataGrid;
import com.capinfo.accumulation.service.accounting.mybits.ZDPZCWPZMBServiceI;
@Service("zDPZCWPZMBService")
public class  ZDPZCWPZMBServiceImpl implements  ZDPZCWPZMBServiceI {
	
	@Autowired
	 ZDPZCWPZMBDao  zDPZCWPZMBDao;
	@Override
	public int deleteByPrimaryKey(String id) {
		return this.zDPZCWPZMBDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ZDPZCWPZMB record) {
		
		return this.zDPZCWPZMBDao.insertSelective(record);
	}

	@Override
	public ZDPZCWPZMB selectByPrimaryKey(String id) {
		return this.zDPZCWPZMBDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ZDPZCWPZMB record) {
		return this.zDPZCWPZMBDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public DataGrid findbyByGrid(Map map) {
		DataGrid dataGrid = new DataGrid();
		map.put("dataGrid", dataGrid);
		List<ZDPZCWPZMB> retList = this.zDPZCWPZMBDao.findbyByGrid(map);
		dataGrid.setRows(retList);
		return dataGrid;
	}
	public DataGrid findbyByGrid1(Map map) {
		DataGrid dataGrid = new DataGrid();
		map.put("dataGrid", dataGrid);
		String kmbm=map.get("KMBM").toString();
		List retList = this.zDPZCWPZMBDao.findbyByGrid1(kmbm);
		dataGrid.setRows(retList);
		return dataGrid;
	}
	

	@Override
	public int updateByFLXH(String FLXH,String ZDPZMBID) {
		return this.zDPZCWPZMBDao.updateByFLXH(FLXH,ZDPZMBID);
	}

}
